import request from '@/utils/request'

// 获取导航列表
export const getNavlist = () => {
  return request({
    url: '/homenavs',
    method: 'get',
  })
}


// 获取推建服务列表
export const getRecList = () => {
  return request({
    url: '/rec_services',
    method: 'get',
  })
}

// 获取文章列表
export const getArticleList = () => {
  return request({
    url: '/articles',
    method: 'get',
  })
}

// 通过分类id获取文章列表
export const getArticleListById = (id) => {
  return request({
    url: `articles?article_classid=${id}`,
    method: 'get',
  })
}

// 通过文章id获取文章
export const getArticleById = (id) => {
  return request({
    url: `articles?id=${id}`,
    method: 'get',
  })
}


// 获取阿姨信息
export const getNarrysInfo = () => {
  return request({
    url: `narryss`,
    method: 'get',
  })
}

// 通过id获取阿姨详细信息
export const getNarryById = (id) => {
  return request({
    url: `narryss?id=${id}`,
    method: 'get',
  })
}
